package ji

import "text/template"

type templates struct {
	htmlTemplates *template.Template
	funcMap       template.FuncMap
}

func (t *templates) SetFuncMap(funcMap template.FuncMap) {
	t.funcMap = funcMap
}

func (t *templates) LoadHTMLGlob(path string) {
	t.htmlTemplates = template.Must(template.New("").Funcs(t.funcMap).ParseGlob(path))
}
